
import {get,post} from '../../utils/request'
import {RoleParams} from './type'
export const getList=(params:RoleParams)=>{

    return get("api/administratorrole/list",params);

}
export const getRole=(id:number)=>{

    return get("api/administratorrole/get",{id});

}

export const addRole=(data:any)=>{

    return post("api/administratorrole/add",data);

}